package cn.sirun.com.fca.map.uitl;

import com.google.gson.Gson;

/**
 * Gson 工具类
 *
 * @author showxiao
 * @date 2018/5/30
 */

public class GsonHelper {

    private static volatile Gson sGson;

    public static Gson getGson() {
        if (sGson == null) {
            synchronized (GsonHelper.class) {
                if (sGson == null) {
                    sGson = new Gson();
                }
            }
        }

        return sGson;
    }

}
